package sixth.group.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import sixth.group.domain.Restaurant;
import sixth.group.domain.RestaurantExample;

import java.util.List;

@Repository
public interface RestaurantMapper {
    long countByExample(RestaurantExample example);

    int deleteByExample(RestaurantExample example);

    int deleteByPrimaryKey(Integer rid);

    int insert(Restaurant record);

    int insertSelective(Restaurant record);

    List<Restaurant> selectByExample(RestaurantExample example);

    Restaurant selectByPrimaryKey(Integer rid);

    Restaurant selectByUsername(String rusername);

    int updateByExampleSelective(@Param("record") Restaurant record, @Param("example") RestaurantExample example);

    int updateByExample(@Param("record") Restaurant record, @Param("example") RestaurantExample example);

    int updateByPrimaryKeySelective(Restaurant record);

    int updateByPrmaryKey(Restaurant record);
}